<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	
	<script>
		var obj = {
			name :'qwe',
			age : 123,
			sex :'female'
		}
		var obj1 = {}

		function clone(origin,target) {
			var target = target || {};
			for (var prpo in orgin) {
				target[prop] = orgiin[prop];
			}
			return target;
		}

		clone(obj.obj1);
	</script>
</body>
</html>